'use strict';

function getAge(){
    var x =new Date().getFullYear();
    return x - this.birth
}
var xiaoliu ={
    name:'刘晶',
    birth:2004,
    age:getAge
}
console.log(xiaoliu.age());